<%@ Control Language="c#" Inherits="Portal.Modules.AdminPortal.Roles" CodeBehind="Roles.ascx.cs" %>
<table rules="all" class="gridData">
	<tr class="gridHeader">
		<td class="w5">
			&nbsp;
		</td>
		<td id="tdHeaderRoleType" runat="server">
			<portal:Label LanguageRef="RoleType" runat="server" />
		</td>
		<td>
			<portal:Label LanguageRef="Role" runat="server" />
		</td>
	</tr>
	<asp:Repeater ID="gridRoles" runat="server" OnItemDataBound="OnDataBind">
		<ItemTemplate>
			<tr>
				<td class="w5">
					<asp:LinkButton ID="lnkDelete" runat="server" OnCommand="OnDelete" CausesValidation="False"><img src="images/delete.gif" alt="Delete" /></asp:LinkButton>
				</td>
				<td id="tdRoleType" runat="server">
					<asp:Label runat="server" ID="lRoleType" />
				</td>
				<td>
					<asp:Label runat="server" ID="lRole" />
				</td>
			</tr>
		</ItemTemplate>
	</asp:Repeater>
	<tr>
		<td>
			<asp:LinkButton ID="lnkAddRole" OnClick="OnAddRole" runat="server" CausesValidation="False"><img src="images/new.gif" alt="Add" /></asp:LinkButton>
		</td>
		<td id="tdAddRoleType" runat="server">
			<portal:DropDownList runat="server" ID="cbAddRoleType" Width="100%">
				<asp:ListItem Value="" />
				<asp:ListItem Value="view" LanguageRef="RoleView" />
				<asp:ListItem Value="edit" LanguageRef="RoleEdit" />
			</portal:DropDownList>
		</td>
		<td>
			<asp:DropDownList runat="server" ID="cbAddRole" DataTextField="name" DataValueField="name"
				Width="100%" />
		</td>
	</tr>
</table>
